package cn.edu.huanu.dao;

import cn.edu.huanu.exception.DaoException;
import cn.edu.huanu.pojo.Book;

import java.util.List;

/**
 * @author hb
 * @date 2025-11-14 10:00:02
 */
public interface BookDao {

    /**
     * 分页查询图书信息
     *
     * @param beginIndex
     * @param offset
     * @return
     * @throws DaoException
     */
    public List<Book> queryBookByPageOrderByPubDate(int beginIndex, int offset) throws DaoException;

    Book queryBookById(Integer id)throws DaoException;
}
